package com.ddwl.funds.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.funds.dao.mapper.ByteDancePayMapper;
import com.ddwl.funds.dao.model.ByteDancePay;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

/**
 * @author hemiaojun
 */
@Repository
public class ByteDancePayDao extends TkDao<ByteDancePayMapper,ByteDancePay> {

    public ByteDancePay getByOutOrderNo(String outOrderNo) {
        Example example = getExample();
        example.and().andEqualTo("outOrderNo", outOrderNo);
        example.setOrderByClause("gmt_created desc limit 1");
        return baseMapper.selectOneByExample(example);
    }
}